﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HomeBudget
{
    public class InvalidItemName : Exception
    {
        public InvalidItemName(string msg)
            : base(msg) { }
        public static bool NameOfWhiteSpaces(string name)
        {
            for (int i = 0; i < name.Length; i++)
            {
                if (!char.IsWhiteSpace(name[i]))
                {
                    return false;
                }
            }
            return true;
        }
    }
}
